package top.zerocn.entity;

import java.io.Serializable;
import java.math.BigDecimal;

public class Book implements Serializable {

	private static final long serialVersionUID = -4901375312739148376L;
	
	private String name;
	private BigDecimal price;
	private String author;

	public Book(String name, BigDecimal price, String author) {
		super();
		this.name = name;
		this.price = price;
		this.author = author;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	@Override
	public String toString() {
		return "book [name=" + name + ", price=" + price + ", author=" + author + "]";
	}

}
